
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label id="failureCode"><@label key="failureCode.C,colon">故障代码：</@label></label> <input type="text" name="failureCode" value="${condition.failureCode!''}" />
                </li>
                <li><label id="failureText"><@label key="failureText.C,colon">故障描述：</@label></label> <input type="text" name="failureText" value="${condition.failureText!''}" />
                </li>
                <li><label><@label key="lockFlag.C,colon">锁定标记：</@label></label> <select name="lockFlag">
                        <option value=""><@label key="all.C">所有</@label></option>
                        <option value="0"<#if condition.lockFlag?? && condition.lockFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                        <option value="1"<#if condition.lockFlag?? && condition.lockFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                </select></li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div></li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="FAILURE_ADD" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true" width="450" height="200" href="${rc.getContextPath()}/manage/failure/addFailure?navTabId=${navTabId!''}" title="<@label key='addFailure.D'>新增故障</@label>"><span><@label key="add.B">新增</@label></span> </a></li> 
            </@buttonRight> 
            <@buttonRight menuCode="FAILURE_EDIT" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="450" height="270" href="${rc.getContextPath()}/manage/failure/modifyFailure?id={failure_code}&navTabId=${navTabId!''}" title="<@label key='editFailure.D'>编辑故障</@label>"><span><@label key="edit.B">编辑</@label></span> </a></li>
            </@buttonRight>
            <@buttonRight menuCode="FAILURE_VIEW" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="450" height="270" href="${rc.getContextPath()}/manage/failure/viewFailure?id={failure_code}&navTabId=${navTabId!''}" title="<@label key='viewFailure.D'>故障详情</@label>"><span><@label key="view.B">详情</@label></span> </a></li>
            </@buttonRight>
            <@buttonRight menuCode="FAILURE_DEL" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" callback="batchjobAjaxDone" href="${rc.getContextPath()}/manage/failure/deleteFailure?navTabId=${navTabId!''}" postType="string" rel="ids" title="<@label key='confirmDelFailure.M'>确认要删除选择的故障吗？</@label>"><span><@label key="delete.B">删除</@label></span> </a></li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="134" style="overflow: scroll;">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="100" orderField="failureCode"<#if (page.orderField?? && page.orderField == 'failureCode')>class="${page.orderDirection!''}"</#if>><@label key="failureCode.C">故障代码</@label></th>
                <th width="100" orderField="failureText"<#if (page.orderField?? && page.orderField == 'failureText')>class="${page.orderDirection!''}"</#if>><@label key="failureText.C">故障描述</@label></th>
                <th width="100" orderField="lockFlag"<#if (page.orderField?? && page.orderField == 'lockFlag')>class="${page.orderDirection!''}"</#if>><@label key="lockFlag.C">锁定标记</@label></th>
                <th width="100" orderField="createUser"<#if (page.orderField?? && page.orderField == 'createUser')>class="${page.orderDirection!''}"</#if>><@label key="createUser.C">创建人</@label></th>
                <th width="100" orderField="createDateTime"<#if (page.orderField?? && page.orderField == 'createDateTime')>class="${page.orderDirection!''}"</#if>><@label key="createDateTime.C">创建时间</@label></th>
                <th width="100" orderField="modifyUser"<#if (page.orderField?? && page.orderField == 'modifyUser')>class="${page.orderDirection!''}"</#if>><@label key="modifyUser.C">修改人</@label></th>
                <th width="100" orderField="modifyDateTime"<#if (page.orderField?? && page.orderField == 'modifyDateTime')>class="${page.orderDirection!''}"</#if>><@label key="modifyDateTime.C">修改时间</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as failure>
            <tr target="failure_code" rel="${failure.failureCode!''}">
                <td><input name="ids" value="${failure.failureCode!''}" type="checkbox">
                </td>
                <td>${failure.failureCode!''}</td>
                <td>${failure.failureText!''}</td>
                <td><#if failure.lockFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
                <td>${failure.createUser!''}</td>
                <td>${failure.createDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
                <td>${failure.modifyUser!''}</td>
                <td>${failure.modifyDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
            </tr>
            </#list> <#else>
            <tr target="failure_id">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if> <#else>
            <tr target="failure_id">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>